cmake_minimum_required(VERSION 2.8)
project(main)

set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -O3 -fopenmp -pthread")

# Eigen
include_directories("/usr/include/eigen3")

# opencv
find_package(OpenCV 4 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

# Sophus
find_package(Sophus REQUIRED)
include_directories(${Sophus_INCLUDE_DIRS})

# G2O
# find_package(G2O REQUIRED)
# include_directories(${G2O_INCLUDE_DIRS})

#MVSDK
#link_directories(/usr/lib)

add_executable(main main.cpp camera.cpp transfer.cpp)
target_link_libraries(main ${OpenCV_LIBS} ${Sophus_LIBS} ${G2O_LIBS} ${MVSDK_LIBS} -lMVSDK)
